

package com.tianshi.product.service;


import com.tianshi.vo.ProductVO;
import com.tianshi.entity.Products;

import java.util.List;

public interface ProductService {

    ProductVO getProductById(Long id);

    List<ProductVO> getAllProducts();

    List<ProductVO> searchProductByName(String productName);
    Long addProduct(Products product);

    Products updateProduct(Products product);

    Long deleteProduct(Long productId);

    //根据关键字搜索商品
    List<Products> searchByKeyword(String keyword);
    //根据分类搜索商品
    List<Products> searchByCategory(Long categoryId);
    //获取热门商品
    List<Products> getHotProducts();

}
